This will be required in the upcoming version of GJS.
https://bugzilla.gnome.org/show_bug.cgi?id=775374
{
g_message("Failed to defined ARGV: %s", error->message);
g_error_free (error);
+ g_object_unref (context);
return 1;
}
{
g_message ("Execution of main.js threw exception: %s", error->message);
g_error_free (error);
+ g_object_unref (context);
return status;
}
+ g_object_unref (context);
return 0;
}
{
g_message("Failed to define ARGV: %s", error->message);
g_error_free (error);
+ g_object_unref (context);
return 1;
}
{
g_message ("Execution of main.js threw exception: %s", error->message);
g_error_free (error);
+ g_object_unref (context);
return status;
}
+ g_object_unref (context);
return 0;
}